<template>
	<view class="uni-flex-column content">
		<text class="title">你已被拉黑</text>
		<text class="tip">请联系管理员！</text>
		<vimage class="col_img" mode="widthFix" imgtype="1" src="static/images/blank.png"></vimage>
	</view>
</template>

<script>
import {mapState, mapMutations} from 'vuex';

export default {
	data() {
		return {
			mallBaseinfo: {}
		};
	},
	mounted() {
		this.judgeLogin(
			() => {
				this.Jumpurl(
					{
						link: '/pages/index/index',
						type: 1,
						login_type: 1
					},
					'redirect'
				);
			},
			() => {
				this.gettokenToUserInfo();
				// _this.usercollect();
			}
		);
		// this.getjuris('mallBase').then(res => {
		// 	this.mallBaseinfo = res;
		// 	if (res.is_open) {
		// 		this.Jumpurl({
		// 			link: '../index/index',
		// 			type: 1
		// 		});
		// 	}
		// });
	},
	methods: {
		gettokenToUserInfo() {
			let params = {
				need:1
			};
			this.$http('/user/tokenToUserInfo', params, 'GET').then(res => {
				if (res.statusCode == 200) {
					let UserInfo = res.data.msg;
					this.userCenter(UserInfo);
					
				} else {
					// this.$store.commit('setUserInfo', {});
					// this.$store.commit('settoken', null);
				}
			});
		},
		userCenter(UserInfo) {
			let params = {};
			this.$http('/user/UserCenter', params, 'GET').then(res => {
				let centerinfo = res.data.msg;
				let myUserInfo = Object.assign({}, UserInfo, centerinfo);
				this.$store.commit('setUserInfo', myUserInfo);
				this.Jumpurl(
					{
						link: '/pages/index/index',
						type: 1,
						login_type: 1
					},
					'redirect'
				);
			});
		}
	}
};
</script>

<style lang="scss">
.content {
	height: 100vh;
	font-size: 40rpx;
	// align-items: center;
	// justify-content: center;
	// text {
	// 	padding: 0 60rpx;
	background-color: #ffffff;
	// }
	.title {
		font-size: 52rpx;
		font-family: SourceHanSansCN-Normal;
		color: #000000;
		// letter-spacing: 100px;
		padding: 60rpx 0 18rpx 36rpx;
	}
	.tip {
		font-size: 36rpx;
		font-family: SourceHanSansCN-Normal;
		color: #000000;
		// letter-spacing: 100px;
		padding: 0rpx 0 18rpx 36rpx;
	}
	.col_img {
		margin-left: 70rpx;
		width: 660rpx;
		margin-top: 160rpx;
	}
	/* margin-top: 10px; */
}
</style>
